<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<!-- div1 -->
<div class="row  border-bottom white-bg dashboard-header">
    <div class="col-sm-4">
        <h2>玩家携带总金币:</h2>
        <h2 th:text="${gold.carryGold}"></h2>
        <br>
        <br>
        <h2>玩家银行总金币:</h2>
        <h2 th:text="${gold.safeGold}"></h2>
        <br>
        <br>
        <h2>后台赠送总金币:</h2>
        <h2 th:text="${gold.giveGold}"></h2>
        <br>
    </div>

    <!-- div2 -->
    <div class="col-sm-6">
        <h2>游戏税收金币:</h2>
        <div class="container-div">
            <div class="row">
                <div class="col-sm-12 search-collapse">
                    <form id="formId">
                        <div class="select-list">
                            <ul>
                                <li class="select-time">
                                    <label>时间： </label>
                                    <input type="text" class="time-input" id="startTime" placeholder="开始" readonly="true" name="startTime"/>
                                    <span>-</span>
                                    <input type="text" class="time-input" id="endTime" placeholder="结束" readonly="true" name="endTime"/>
                                </li>
                                <li>
                                    <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()">
                                        <i class="fa fa-search"></i>&nbsp;搜索</a>
                                    <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()">
                                        <i class="fa fa-refresh"></i>&nbsp;重置</a>
                                </li>
                            </ul>
                        </div>
                    </form>
                </div>

                <div class="col-sm-12 select-table table-striped">
                    <table id="bootstrap-table" data-mobile-responsive="true"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var prefix = ctx + "jl/home";
    $(function() {
        var options = {
            url: prefix + "/revenueGoldlist",
            search: false,
            showExport: false,
            columns: [
                {
                    field : 'game_name',
                    title : '游戏',
                    visible: true
                },
                {
                    field : 'gold',
                    title : '金币',
                    sortable: false
                }]
        };
        $.table.init(options);
    });


</script>
</body>
</html>
